<div class="title">Account</div>
<?php if($us->isAuthenticated()): ?>
<div>Logged in as <i><?php echo $t['username']; ?></i></div>
<div><a href="<?php echo $ro->gen('logout'); ?>">Logout</a></div>
<?php else: ?>
<div class="form login-box">
<div class="hidden" id="login-applet-plain">
<form action="<?php echo $ro->gen('login'); ?>" method="post" id="login-form-plain">
	<dl>
		<dt>Login name</dt>
		<dd><input type="text" name="username" id="fe-username" value="<?php echo $t['saved_username']; ?>" /></dd>
		
		<dt>Password</dt>
		<dd><input type="password" name="password" value="" id="fe-password" /></dd>
		<dd><label><input type="checkbox" name="remember" value="on"/> remember me</label>
		</dd>
		<dd><input type="submit" value="login"/> or 
		<a href="" id="switch-to-openid" class="hidden" onclick="return show_openid_login_form();">with OpenId</a>
		</dd>
	</dl>
	
</form>
</div>
<div id="login-applet-openid">
<form action="<?php echo $ro->gen('openid_login'); ?>" method="post" id="login-form-openid">
	<dl>
		<dt>OpenID</dt>
		<dd><input type="text" name="openid" id="fe-openid" value="<?php echo $t['saved_openid']; ?>" /></dd>
		<!-- <dd><label><input type="checkbox" name="remember" value="on"/> remember me</label> 
		</dd> -->
		<dd><input type="submit" value="login"/> or
		<a href="" id="switch-to-plain" onclick="return show_plain_login_form();">with password</a>
		</dd>
	</dl>
</form>
</div>
</div>
<?php endif; ?>
